package com.tiankun.eurekaticket.mapper;

import com.tiankun.eurekaticket.pojo.Ticket;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author liaopeng
 * @Date 2020/11/13 9:36
 * @Version 1.0
 **/
@Repository
public interface TicketMapper extends Mapper<Ticket> {

    //前台店铺查询已上架可领取的优惠券
    public List<Map<String,Object>> findPutawayticketList(Integer shopid);

    //查询已设计的优惠券
    public List<Map<String,Object>> findAllticketList(Integer shopid);

    //模糊查询已设计的优惠券
    public List<Map<String,Object>> findAllticketListLike(Integer shopid,String name,String random);

    //电铺内查看用户领取优惠券列表
    public List<Map<String,Object>> findGetTicketUserList(Integer shopid);

    //模糊查询电铺内用户领取优惠券列表
    public List<Map<String,Object>> findGetTicketUserListLike(Integer shopid,String name,Integer usestate,String random,String userName);
}
